home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
sx227r1.zip
/
EXPAND.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-07-30
|
2KB
|
74 lines
echo off
:
:-----------------------------------------------------------
: EXPAND batch file - Xpress Packet Expansion Process
: (c) copyright 1988-90 Santronics Software
:-----------------------------------------------------------
:
: NOTE: Xpress during the expansion process has already
: switched to the work directory.
:
:-----------------------------------------------------------
: Input Parameters
:-----------------------------------------------------------
:
: 1 Hotkey from Xpress Archiver Menu
: 2 /R
: 3 full path name to XPRESS PACKET !uploaded packet full path
:
:-----------------------------------------------------------
: Modify and Add extra archivers if required.
:
: 1) first add a IF statement with a GOTO
: 2) then add the goto LABEL with the appropiate logic.
:-----------------------------------------------------------
:
IF "%1" == "A" GOTO ARCA
IF "%1" == "X" GOTO PKARC
IF "%1" == "P" GOTO PAK
IF "%1" == "Z" GOTO PKZIP
IF "%1" == "L" GOTO LHARC
GOTO ERROR
:------------------------------------ ARCE expansion
:ARCA
:
ARCE %3 %2
EXIT ERRORLEVEL
GOTO END
:------------------------------------ PKXARC expansion, 3.5 or 3.6
:PKARC - Note PKXARC does not return ERROR codes.
: Xpress will try to see if any !*.* exist to determine
: if an error occurred.
:
PKXARC %2 %3
EXIT ERRORLEVEL
GOTO END
:------------------------------------ PAK expansion, 1.0
:PAK
:
PAK e %3
EXIT ERRORLEVEL
GOTO END
:------------------------------------ PKUNZIP expansion
:PKZIP
:
PKUNZIP -o %3
EXIT ERRORLEVEL
GOTO END
:------------------------------------ LHARC expansion
:LHARC
:
LHARC e /m %3 %4
EXIT ERRORLEVEL
GOTO END
:------------------------------------ ERROR PROCESSING
:ERROR
echo Expand Archiver %1 not found!
:END